package cn.iocoder.yudao.module.game.dal.mysql.gameProfitAndLoss;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.gameProfitAndLoss.GameProfitAndLossDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.gameProfitAndLoss.vo.*;

/**
 * 游戏盈亏 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface GameProfitAndLossMapper extends BaseMapperX<GameProfitAndLossDO> {

    default PageResult<GameProfitAndLossDO> selectPage(GameProfitAndLossPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<GameProfitAndLossDO>()
                .betweenIfPresent(GameProfitAndLossDO::getUpdateTime, reqVO.getUpdateTime())
                .orderByDesc(GameProfitAndLossDO::getId));
    }

}